package com.xcc.factorypattern.demo04;

/**
 * @Description: NYPizzaIngredientFactory
 * @Author xiechuang
 * @Date 2022/9/4
 */
public class NYPizzaIngredientFactory implements PizzaIngredientFactory {

    @Override
    public Dough createDough() {
        return new ThinCrustDough();
    }

    @Override
    public Sauce createSauce() {
        return new MarinaraSauce();
    }

    @Override
    public Cheese createCheese() {
        return new ReggianoCheese();
    }

    @Override
    public Veggies[] createVeggies() {
        Veggies veggies[] = { new Garlic(), new Onion(), new Mushroom(), new RedPepper() };
        return veggies;
    }

    @Override
    public Pepperoni createPepperoni() {
        return new SlicedPepproni();
    }

    @Override
    public Clams createClams() {
        return new FreshClams();
    }

}
